﻿using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using CPF.Platform;
using CPF.Skia;
using CPF.Windows;

namespace DesktopCam
{
    internal class Program
    {
        public static readonly string Version = Assembly.GetEntryAssembly().GetName().Version.ToString();
        /// <summary>
        /// 后台服务名称
        /// </summary>
        private static readonly string _serviceName = "WampWorker";
        [STAThread]
        static void Main(string[] args)
        {
            Console.WriteLine("主程序启动");
            Console.WriteLine(RuntimeInformation.OSArchitecture);
            Console.WriteLine($"Assembly Version: {Version}");


            


            Application.Initialize(
                (OperatingSystemType.Windows, new WindowsPlatform(), new SkiaDrawingFactory())
                //, (OperatingSystemType.OSX, new CPF.Mac.MacPlatform(), new SkiaDrawingFactory())//如果需要支持Mac才需要
                , (OperatingSystemType.Linux, new CPF.Linux.LinuxPlatform(), new SkiaDrawingFactory())//如果需要支持Linux才需要
            );


            //AutoUpdaterCoreFunc.StartUpdate(_serviceName);
            Application.Run(new Window1());

            
        }
    }
}
